﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        var a = 2, b = 4, c = 6, d = 8, e = 10;
        if ((a >= b) && (a >= c) && (a >= d) && (a >= e)) {
            document.writeln("The greatest number is " + a);
        }
        else if ((b >= a) && (b >= c) && (b >= d) && (b >= e)) {
            document.writeln("The greatest number is " + b);
        }
        else if ((c >= a) && (c >= b) && (c >= d) && (c >= e)) {
            document.writeln("The greatest number is " + c);
        }
        else if ((d >= a) && (d >= b) && (d >= c) && (d >= e)) {
            document.writeln("The greatest number is " + d);
        }
        else if ((e >= a) && (e >= b) && (e >= c) && (e >= d)) {
            document.writeln("The greatest number is " + e);
        }
    </script>
</body>
</html>
